Golang - Hello World!


不免俗的第一篇當然就是要來 Run Hello World 啊。


main.go

package main

import "fmt"

func main() {
    fmt.Println("Hello World!")
}

直接 Run

$ go run main.go

Build 執行檔

$ go build main.go
$ ./main
#golang #GO







你可能感興趣的文章

[Note] JS: OOP - Inheritance

[Note] JS: OOP - Inheritance

官方 ASP.NET Core 教學課程沒有說的小地方 - Part 1

官方 ASP.NET Core 教學課程沒有說的小地方 - Part 1

[ 學習筆記系列 ] 網頁本質 (二) - CSS 篇

[ 學習筆記系列 ] 網頁本質 (二) - CSS 篇






留言討論